package model.repository;

import java.util.List;

import model.bll.TicketsBLL;
import model.entity.Tickets;

public class TicketsRES {

	private final TicketsBLL ticketsBLL;
	
	public TicketsRES() {
		this.ticketsBLL = new TicketsBLL();
	}
	
	public boolean insert(Tickets entity) {
		return ticketsBLL.insertEntity(entity);
	}

	public boolean update(Tickets entity) {
		return ticketsBLL.updateEntity(entity);
	}

	public boolean delete(Tickets entity) {
		return ticketsBLL.deleteEntity(entity);
	}

	public List<Tickets> getAll() {
		return ticketsBLL.getAllEntity();
	}

	public Tickets findById(long id) {
		return ticketsBLL.findEntityById(id);
	}
}
